<?php 
	session_start(); 
	header('Content-Type: text/html; charset=iso-8859-8-i');    
?>

<html lang="he"> 
<meta HTTP-EQUIV="content-type" CONTENT="text/html"; charset="iso-8859-8-i" />
<head>
	<link rel="stylesheet" type="text/css" href="footer.css" />
</head>
<body dir = 'rtl' bgcolor = '#FFCC99'>
<div id="contents">
<table width = '120' border = '0' align = 'center'>
<?php

/**
 * @author CSS
 * @copyright 2008
 */
 
include_once "../db/db.php";

$userType = (isset($_SESSION["currUserType"]) ? $_SESSION["currUserType"] : 'nonreg');

$menu = getMenuItems($userType);

foreach ($menu as $item)
{
	echo "	<tr><td align = 'right' bgcolor = '".$item[7]."'>
				".($item[2] <> '' ? "<a href = '".$item[2]."' target = 'main'>" : "<b>")."
					<font size = 2 face = 'arial' color = '".$item[8]."'>
							".$item[1]."
					</font>
				".($item[2] <> '' ? "</a>" :  "</b>")."
			</td></tr>";
}

//echo "</table><br>";
echo "</table></div><div id='footer'>";

if ($userType == 'admin')
	echo "<a href = '../manual/adminGuide.pdf' target = 'main'><img valign = 'top' align = 'right' src='../images/HelpIcon.gif' height='30' border='0'/></a>";

if ($userType == 'user')
	echo "<a href = '../manual/userGuide.pdf' target = 'main'><img valign = 'top' align = 'right' src='../images/HelpIcon.gif' height='30' border='0'/></a>";

if ($userType == 'viewer')
	echo "<a href = '../manual/viewerGuide.pdf' target = 'main'><img valign = 'top' align = 'right' src='../images/HelpIcon.gif' height='30' border='0'/></a>";

if ($userType == 'nonreg')
	echo "<a href = '../manual/nonregGuide.pdf' target = 'main'><img valign = 'top' align = 'right' src='../images/HelpIcon.gif' height='30' border='0'/></a>";
	
echo "</div>";
?>
</body>
</html>